<%= turbo_frame_tag "edit_address_#{params[:type]}" do %>
  <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @address } %>

  <%= form_for [:admin, @address], as: :address, url: spree.admin_address_path(@address), method: :put, data: { turbo_frame: '_top' } do |f| %>
    <%= render 'spree/addresses/form',
                   address_name: 'address',
                   address_form: f,
                   address_type: 'shipping',
                   address: @address %>
    <%= render 'spree/admin/shared/edit_resource_links', f: f, turbo_frame: '_top' %>
  <% end %>
<% end %>